@import "mixins/all";

/*
  ----------------
  Person settings
  ----------------
*/

.account-settings {
  padding-top: lines(0.25);

  #account_email_form, #account_password_form {
    display: none;
  }

  .account-settings-row {
    position: relative;
    @include border-radius(em(5));
    border: 2px solid $border;
    margin-bottom: lines(1);
    min-height: 42px;

    .account-settings-text {
      margin-left: lines(1.5);
      padding: em(5) 0 em(10) 0;
    }

    .account-settings-icon {
      position: absolute;
      top: em(7);
      left: em(10);
    }

    .account-settings-email-form {
      padding: 0 lines(0.5) lines(0.5) lines(0.5);
    }

    .account-settings-email-row {
      @include border-radius($default-border-radius);
      width: 100%;
      overflow: hidden;
      padding: lines(0.5) 0;
      @include media(desktop) {
        padding: 0;
        line-height: (lines(1.5) - em(2)); // Magic number to vertically center text
      }
    }

    .account-settings-email-form-row {
      padding-top: lines(0.5);
      height: auto;
      line-height: auto;
      width: 100%;
    }

    .account-settings-email-row-highlight {
      background: $highlight;
    }

    .account-settings-email-row-address {
      padding-left: lines(0.5);

      @include media(desktop) {
        @include ellipsis;
        width: lines(6);
        float: left;
      }

      @include media(desktop) {
        width: lines(12);
      }
    }

    .account-settings-email-form-row-address {
      padding-left: 0;
    }

    .account-settings-email-row-send-notification {
      padding-left: lines(0.5);
      @include media(desktop) {
        float: right;
        width: lines(7);
        text-align: center;
      }
    }

    .account-settings-email-row-confirmed {
      padding-left: lines(0.5);
      small {
        margin-left: lines(0.25);
      }

      @include media(desktop) {
        float: right;
        width: lines(7);
        text-align: center;
      }

    }

    .account-settings-email-row-delete {
      padding-left: lines(0.5);
      @include media(desktop) {
        float: right;
        min-width: lines(2);
        text-align: center;
      }
    }

    .account-settings-email-row-delete-cross {
      &.disabled {
        color: $border;
      }
    }

    .account-settings-hidden-email-form {
      display: none;
    }

    .settings-email-mobile-label-container {
      width: 100%;
      overflow: hidden;
    }

    .settings-email-mobile-label {
      float: left;
      @include media(desktop) {
        float: none;
      }
    }

    .settings-email-mobile-label-right {
      padding-left: lines(0.25);
      @include media(desktop) {
        padding: 0;
      }
    }

  }

  .email-form {
    margin-top: lines(0.5);
    padding: 0 lines(0.5);
  }

  .password-form {
    padding: 0 lines(0.5);

    input[type=password] {
      margin-top: lines(0.5);
    }

  }

  p {
    padding: 0 lines(0.5) lines(0.25) lines(0.5);
  }

  p.global-settings {
    padding: 0 0 lines(0.25) 0;
  }

  @include media(tablet) {

    a.change-link {
      margin-left: lines(0.5);
    }

  }

  #delete_account_button {
    margin-left: lines(0.5);
  }

}

.notification-settings {
  h2 {
    margin-bottom: 0;
  }

  h2.lower {
    margin-top: lines(1);
  }

  .checkbox-container {
    label {
      font-weight: 500;
    }
  }
}

.alert-text-container {
  position: relative;
  margin-top: lines(0.25);
}

.alert-text-icon {
  position: absolute;
  width: lines(0.5);
  margin-top: 3px; // to align with text
}

.alert-text-content {
  padding-left: lines(1);
}

.paypal-wizard {
  border: 1px solid $border;
  @include border-radius($default-border-radius);
  margin-bottom: lines(1);
  margin-top: lines(2);
}

.paypal-wizard-content {
  padding: lines(1) lines(1.5);
}

.paypal-wizard-divider {
  border-top: 1px solid $border;
}

.paypal-wizard-step {
  @include big-type;
  font-weight: normal;
}

.paypal-wizard-step-complete {
  @extend .paypal-wizard-step;
  color: $success-green;
}

.paypal-change-link {
  cursor: pointer;
}

.paypal-success-mark {
  color: $success-green;
}

.paypal-first-steps-list {
  margin-top: lines(1.5);
}

.paypal-last-steps-list {
  margin-bottom: lines(1.5);
}

.paypal-currency-information {
  padding-left: 30px;
  position: relative;
}

.paypal-currency-info-icon {
  position: absolute;
  top: 0;
  left: 0;
}

.paypal-currency-change-warning-text {
  display: none;
}

/* These styles are required for stripe.js card input form*/
.StripeElement {
  background-color: white;
  padding: 12px 12px;
  border-radius: 4px;
  border: 2px solid #c3c3c3;
}

.StripeElement--focus {
  box-shadow: 0 1px 3px 0 #cfd7df;
}

.StripeElement--invalid {
  border-color: #fa755a;
}

.StripeElement--webkit-autofill {
  background-color: #fefde5 !important;
}

#stripe_account_form_birth_date_1i, #stripe_account_form_birth_date_2i, #stripe_account_form_birth_date_3i {
  width: 32.5%;
}

#update_also_bank_account {
  margin-right: 10px;
}

#stripe_wizard {
  input[disabled] {
    background-color: #dddddd;
  }
}

.markdown-help-table {
  th {
    border-bottom: 1px solid #ddd;
  }
  td {
    border-bottom: 1px solid #ddd;
  }
  tbody tr:nth-child(odd) {
    background-color: transparent;
  }
}
